package net.aiotos.common.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;



@Data
@NoArgsConstructor
public class IotosYmlConfig {
    private float version;
    /**
     * 激活服务的名称
     */
    private String env = "default";
    @JSONField
    private Map<String, IotosService> services = new HashMap<>();

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class IotosService {
        private String host;
        private String uuid;
        private String username;
        private String password;
    }
}
